export default [
    {
		path: '/car_map', // 爱车服务
		name: 'car_map',
//		component: resolve => require(['../pages/car/car-map'], resolve),
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/car/car-map'));}, 'h5project')},
		meta: {
			title:'爱车服务',
			keepAlive:true
		}
    },
    {
		path: '/car-list', //车辆列表
		name: 'car-list',
//		component: resolve => require(['../pages/car/car-list'], resolve),
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/car/car-list'));}, 'h5project')},
		meta: {
			title:'车辆列表',
			auth: true
		}
    },
    {
		path: '/car-rails',
		name: 'car-rails',
		// component: require('pages/car-rails'),
//		component: resolve => require(['../pages/car/car-rails'], resolve),
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/car/car-rails'));}, 'h5project')},
		meta: {
			title: '围栏设置',
			auth: true
		}
    },
	{
		path: '/path-navigation',
		name: 'path-navigation',
//		component: resolve => require(['../pages/car/path-navigation'], resolve),
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/car/path-navigation'));}, 'h5project')},
		meta: {
			title: '出行导航',
			auth: true
		}
    },
    {
		path: '/car-share-request',
		name: 'car-share-request',
		// component: require('pages/car-share-request'),
//		component: resolve => require(['../pages/car/car-share-request'], resolve),
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/car/car-share-request'));}, 'h5project')},
		meta: {
			title: '共享申请',
			auth: true
		}
	},
	{
		path: '/car-add',
		name: 'car-add',
		// component: require('pages/car-add'),
//		component: resolve => require(['../pages/car/car-add'], resolve),
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/car/car-add'));}, 'h5project')},
		meta: {
			title: '添加车辆',
			auth: true
		}
	},
	{
		path: '/add-friend-car', // 添加好友车辆
		name: 'add-friend-car',
//		component: resolve => require(['../pages/car/add-friend-car'], resolve),
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/car/add-friend-car'));}, 'h5project')},
	},
	{
		path: '/car-edit-basic-info',
		name: 'car-edit-basic-info',
//		component: resolve => require(['../pages/car/car-edit-basic-info'], resolve),
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/car/car-edit-basic-info'));}, 'h5project')},
		// component: require('pages/car-edit-basic-info'),
		meta: {
			title: '基本信息',
			auth: true
		}
	},
	{
		path: '/bind-device',
		name: 'bind-device',
		// component: require('pages/bind-device'),
//		component: resolve => require(['../pages/car/bind-device'], resolve),
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/car/bind-device'));}, 'h5project')},
		meta: {
			title: '绑定设备',
			auth: true
		}
	},
	{
		path: '/maintain-information',
		name: 'maintain-information',
//		component: resolve => require(['../pages/car/maintain-information'], resolve),
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/car/maintain-information'));}, 'h5project')},
		meta: {
			title: '保养信息',
			auth: true
		}
	},
	{
		path: '/insurance-information',
		name: 'insurance-information',
//		component: resolve => require(['../pages/car/insurance-information'], resolve),
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/car/insurance-information'));}, 'h5project')},
		meta: {
			title: '保险信息',
			auth: true
		}
	},
	{
		path: '/running-tracks',
		name: 'running-tracks',
//		component: resolve => require(['../pages/car/running-tracks'], resolve),
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/car/running-tracks'));}, 'h5project')},
		meta: {
			title: '行车轨迹',
			keepAlive:true
		}
	},
	{
		path: '/vehicle-instrument',
		name: 'vehicle-instrument',
//		component: resolve => require(['../pages/car/vehicle-instrument'], resolve),
		component:resolve => {require.ensure([], function(){resolve(require('../pages/car/vehicle-instrument'));}, 'h5project')},
		meta: {
			title: '车辆仪表',
			auth: true
		}
	},
	{
		path: '/vehicle-instrument-detail',
		name: 'vehicle-instrument-detail',
//		component: resolve => require(['../pages/car/vehicle-instrument-detail'], resolve),
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/car/vehicle-instrument-detail'));}, 'h5project')},
		meta: {
			title: '详细信息',
			auth: true
		}
	},
	{
		path: '/vehicle-instrument-hud',
		name: 'vehicle-instrument-hud',
//		component: resolve => require(['../pages/car/vehicle-instrument-hud'], resolve),
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/car/vehicle-instrument-hud'));}, 'h5project')},
		meta: {
			title: 'hud模式',
			auth: true
		}
	},
	{
		path: '/article-show',
		name: 'article-show',
		// component: require('pages/article-show'),
//		component: resolve => require(['../pages/car/article-show'], resolve),
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/car/article-show'));}, 'h5project')},
		meta: {
			title(currentRoute) {
				if(currentRoute.query.title) {
					return currentRoute.query.title
				} else {
					return '详细内容'
				}
			},
			noTransition: true
		}
	},
	{
		path: '/driving-record',
		name: 'driving-record',
		// component: require('pages/driving-record'),
//		component: resolve => require(['../pages/car/driving-record'], resolve),
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/car/driving-record'));}, 'h5project')},
		meta: {
			title: '行车记录',
			auth: true
		}
	},
	{
	  path: '/drive-achievement',
	  name: 'drive-achievement',
	  // component: require('pages/drive-achievement'),
	  component: resolve => require(['../pages/car/drive-achievement'], resolve),
	  meta: {
	    title: '驾驶成就',
	    auth: true
	  }
	}, 
	{
		path: '/car-location',
		name: 'car-location',
		// component: require('pages/car-location'),
//		component: resolve => require(['../pages/car/car-location'], resolve),
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/car/car-location'));}, 'h5project')},
		meta: {
			title: '实时定位',
			auth: true
		}
	},
	{
		path: '/car-rails-edit',
		name: 'car-rails-edit',
		// component: require('pages/car-rails-edit'),
//		component: resolve => require(['../pages/car/car-rails-edit'], resolve),
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/car/car-rails-edit'));}, 'h5project')},
		meta: {
			title: '设置围栏',
			auth: true
		}
	},
	{
		path: '/mot-information',
		name: 'mot-information',
//		component: resolve => require(['../pages/car/mot-information'], resolve),
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/car/mot-information'));}, 'h5project')},
		meta: {
			title: '年检信息',
			auth: true
		}
	},
	{
		path: '/insurance-company',
		name: 'insurance-company',
//		component: resolve => require(['../pages/car/insurance-company'], resolve),
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/car/insurance-company'));}, 'h5project')},
		meta: {
			title: '保险公司',
			auth: true
		}
	},
	{
		path: '/running-tracks-detail',
		name: 'running-tracks-detail',
//		component: resolve => require(['../pages/car/running-tracks-detail'], resolve),
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/car/running-tracks-detail'));}, 'h5project')},
		meta: {
			title: '轨迹详情',
			auth: true
		}
	},
	{
		path: '/running-tracks-stop',
		name: 'running-tracks-stop',
//		component: resolve => require(['../pages/car/running-tracks-stop'], resolve),
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/car/running-tracks-stop'));}, 'h5project')},
		meta: {
			title: '停车信息',
			auth: true
		}
	},
	{
		path: '/picture-show',
		name: 'picture-show',
//		component: resolve => require(['../pages/car/picture-show'], resolve),
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/car/picture-show'));}, 'h5project')},
		meta: {
			title: '显示照片'
		}
	},
	{
		path: '/car_moving_data',
		name: 'car_moving_data',
//		component: resolve => require(['../pages/car/car-moving-data'], resolve),
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/car/car-moving-data'));}, 'h5project')},
		// component: require('pages/car-moving-data'),
		meta: {
			// title: '行车数据',
			auth: true
		}
	},
	{
		path: '/video-show',
		name: 'video-show',
		// component: require('pages/video-show'),
//		component: resolve => require(['../pages/car/video-show'], resolve),
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/car/video-show'));}, 'h5project')},
		meta: {
			// title: '显示视频'
		}
	},
]